#include "Branch.h"

Branch::Branch()
{
    lateral = NULL;
    nextSegment = NULL;
    lastSegment = NULL;
    weight = 1.0;
    circle.clear();
    leaves.clear();
}
Branch :: ~Branch(){
    //delete all of the branches of the tree
    //To do later one
}

//Constants
const double SEGMENT_LENGTH = 0.05;

Point3d Branch ::endPos(){
    return(position + (direction * SEGMENT_LENGTH));
}

double Branch ::getSEGMENT_LENGTH(){
    return SEGMENT_LENGTH;
}
